home *** CD-ROM | disk | FTP | other *** search
- Path: erich.triumf.ca!bennett
- From: bennett@erich.triumf.ca (P.Bennett)
- Newsgroups: comp.lang.c
- Subject: Re: printing to printer???
- Date: 15 Apr 1996 15:13 PST
- Organization: TRIUMF: Tri-University Meson Facility
- Distribution: world
- Message-ID: <15APR199615131703@erich.triumf.ca>
- References: <829594390.19866@smason.demon.co.uk>
- NNTP-Posting-Host: erich.triumf.ca
- News-Software: VAX/VMS VNEWS 1.50
-
- In article <829594390.19866@smason.demon.co.uk>, Jaden@smason.demon.co.uk writes...
- >Does anyone know how to print a string to a printer using Ansi C or
- >Microsoft C++v7????? TIA...
-
- This is dependent on your operating system, but since you mention Microsoft C,
- I assume you are using MS-DOS or Windoze. You would likely get a better
- response if you asked in a system-specific newsgroup, like
- comp.os.msdos.programmer, or comp.os.ms-windows.programmer.misc, as
- appropriate.
-
- Under MS-DOS, both Microsoft and Borland compilers open the stream "stdprn"
- automatically, so you can print just by saying:
- fprintf(stdprn, "the usual printf stuff...");
- (Don't know if this works in Windoze...)
-
-
-
- Peter Bennett VE7CEI | Vessels shall be deemed to be in sight
- Internet: bennett@triumf.ca | of one another only when one can be
- Packet: ve7cei@ve7kit.#vanc.bc.ca | observed visually from the other
- TRIUMF, Vancouver, B.C., Canada | ColRegs 3(k)
- GPS and NMEA info and programs: ftp://sundae.triumf.ca/pub/peter/index.html
- or: ftp://ftp-i2.informatik.rwth-aachen.de/pub/arnd/GPS/peter/index.html
-
-